

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Edit Paquet</title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${resource(dir:'')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list">Paquet List</g:link></span>
            <span class="menuButton"><g:link class="create" action="create">New Paquet</g:link></span>
        </div>
        <div class="body">
            <h1>Edit Papackage</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <g:hasErrors bean="${paquetInstance}">
            <div class="errors">
                <g:renderErrors bean="${paquetInstance}" as="list" />
            </div>
            </g:hasErrors>
            <g:form method="post"  enctype="multipart/form-data">
                <input type="hidden" name="id" value="${paquetInstance?.id}" />
                <input type="hidden" name="version" value="${paquetInstance?.version}" />
                <div class="dialog">
                    <table>
                        <tbody>
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="name">Name:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'name','errors')}">
                                    <input type="text" id="name" name="name" value="${fieldValue(bean:paquetInstance,field:'name')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="description">Description:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'description','errors')}">
                                    <input type="text" id="description" name="description" value="${fieldValue(bean:paquetInstance,field:'description')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="content">Content:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'content','errors')}">
                                    <input type="file" id="content" name="content" />
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="dateCreated">Date Created:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'dateCreated','errors')}">
                                    <g:datePicker name="dateCreated" value="${paquetInstance?.dateCreated}" precision="minute" ></g:datePicker>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="filename">Filename:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'filename','errors')}">
                                    <input type="text" id="filename" name="filename" value="${fieldValue(bean:paquetInstance,field:'filename')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="g">G:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'g','errors')}">
                                    <g:select name="g"
from="${Role.list()}"
size="5" multiple="yes" optionKey="id"
value="${paquetInstance?.g}" />

                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="keywords">Keywords:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'keywords','errors')}">
                                    <input type="text" id="keywords" name="keywords" value="${fieldValue(bean:paquetInstance,field:'keywords')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lang">Lang:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'lang','errors')}">
                                    <input type="text" id="lang" name="lang" value="${fieldValue(bean:paquetInstance,field:'lang')}"/>
                                </td>
                            </tr> 
                        
                            <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="lastUpdated">Last Updated:</label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean:paquetInstance,field:'lastUpdated','errors')}">
                                    <g:datePicker name="lastUpdated" value="${paquetInstance?.lastUpdated}" precision="minute" ></g:datePicker>
                                </td>
                            </tr> 
                        
                        </tbody>
                    </table>
                </div>
                <div class="buttons">
                    <span class="button"><g:actionSubmit class="save" value="Update" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete" /></span>
                </div>
            </g:form>
        </div>
    </body>
</html>
